import request from '@/utils/request'

const API = '/api/order/orderInfo'

export default {
    submitOrder(scheduleId, patientId) {
        return request({
            url: `${API}/save/${scheduleId}/${patientId}`,
            method: 'POST'
        })
    },
    getPageList(pageNum, pageSize, Obj) {
        return request({
            url: `${API}/${pageNum}/${pageSize}`,
            method: 'GET',
            params: Obj
        })
    },
    getStatusList() {//数据字典列表
        return request({
            url: `${API}/list`,
            method: 'GET'
        })
    },
    detail(orderId) {//数据字典列表
        return request({
            url: `${API}/${orderId}`,
            method: 'GET'
        })
    },
    cancelOrder(orderId) {//数据字典列表
        return request({
            url: `${API}/${orderId}`,
            method: 'GET'
        })
    },

}